/*
 * @Author: 霍雷
 * @Date: 2022-05-23 15:01:37
 * @LastEditors: your name
 * @LastEditTime: 2022-07-05 11:22:05
 * @FilePath: /gua-dev-starter/dev-kit/vite/index.ts
 * @Discription:
 */
import createComponents from './plugins/components'
import createDefineOptions from './plugins/define-options'
import createLegacy from './plugins/legacy'
import createMock from './plugins/mock'
import createPages from './plugins/pages'
import createLayouts from './plugins/layouts'
import createSvgIcon from './plugins/svg-icon'
import createVue from './plugins/vue'
import createVueJsx from './plugins/vue-jsx'
import createWindiCss from './plugins/windicss'
const createVitePlugins = () => {
	const vitePlugins: object[] = []
	vitePlugins.push(createComponents())
	vitePlugins.push(createDefineOptions())
	vitePlugins.push(createLegacy())
	vitePlugins.push(createMock())
	vitePlugins.push(createPages())
	vitePlugins.push(createLayouts())
	vitePlugins.push(createSvgIcon())
	vitePlugins.push(createVue())
	vitePlugins.push(createVueJsx())
	vitePlugins.push(createWindiCss())
	return vitePlugins
}
export default createVitePlugins
